package weeny.delaunay;

import java.awt.geom.Point2D;


public class DelaunayUtil extends AbstractDelaunayUtil{
	
	/**
	 * Very simple concrete implementation, only accept Point2D type node
	 */
	protected Point2D asPnt(Object node){
		if (node instanceof Point2D) {
			return (Point2D) node;
		}
		else {
			throw new IllegalArgumentException("cannot handle "+node);
		}
	}
}